/*
 * @Author: wangyu
 * @Date: 2024-12-25 15:04:19
 * @LastEditTime: 2024-12-27 16:44:15
 * @LastEditors: wangyu
 * @Description: 程序入口
 * @FilePath: \dzsq-smartpark-platform\src\main.js
 */
import { createApp } from "vue";
import App from "./App.vue";
import store from "./store";
import router from "./router";

import ElementPlus from "element-plus";
import zhCN from "element-plus/dist/locale/zh-cn.mjs";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

// babel
import "core-js/stable";
import "regenerator-runtime/runtime";
import "amfe-flexible";

import "@/assets/fonts/font.scss";

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

// element+ 全局国际化
app.use(ElementPlus, {
  locale: zhCN,
});
app.use(store).use(router);
app.mount("#app");
